package com.zhongx.xingcd.zxxcd.service.impl;

import com.zhongx.xingcd.zxxcd.bean.Trick;
import com.zhongx.xingcd.zxxcd.mapper.TrickInfoDao;
import com.zhongx.xingcd.zxxcd.service.TrickInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TrickInfoServiceImpl implements TrickInfoService {
    @Autowired
    private TrickInfoDao trickInfoDao;
    @Override
    public List<Trick> getTrickMes(Map params) {
        return trickInfoDao.getTrickMes(params);
    }

    @Override
    public int intoTrickMes(Map params) {
        return trickInfoDao.intoTrickMes(params);
    }

    @Override
    public int getTrickMesNumByName(String ticket_number) {
        return trickInfoDao.getTrickMesNumByName(ticket_number);
    }

    @Override
    public int addMuchTrickMes(List list) {
        return trickInfoDao.addMuchTrickMes(list);
    }
}
